<?php $this->headTitle('Topup');
?>

充值历史

<div>
<a href="<?php echo $this->url(array('module'=>'user', 'controller'=>'topup', 'action'=>'history'));?>">充值历史</a>
<br/>
<a href="<?php echo $this->url(array('module'=>'user', 'controller'=>'topup', 'action'=>'topup'));?>">充值点数</a>
</div>

<?php if($this->topups && count($this->topups) > 0) {?>
<table>
	<tr>
		<th>充值时间</th>
		<th>充值点数</th>
		<th>充值方式</th>
	</tr>
	<?php foreach ($this->topups as $topup) {?>
	<tr>
		<td><?php echo strftime("%Y-%m-%d %H:%M:%S", $topup->topup_time)?></td>
		<td><?php echo $topup->amount?></td>
		<td><?php echo $topup->pay_method?></td>
	</tr>
	<?php }?>
</table>
<?php } else {?>
	<div>您暂时没有充值记录</div>
<?php }?>